﻿package com.tomvian.twodee.sideon 
{
	import com.tomvian.twodee.common.Actor;
	
	/**
	 * SideOnActor
	 * @author Thomas Vian
	 */
	public class SideOnActor extends Actor
	{
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		
		public var gravity:Number = 1;
		
		//--------------------------------------------------------------------------
		//
		//  Getters / Setters
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		
		public function SideOnActor() 
		{
		}
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		
		override public function act():void 
		{
			
			
			//velocity.y += gravity;
			
			super.act();
			
			/*
			if (velocity.x > 0) 		
			{
				direction = 1;
				angle = Math.PI * 0.5;
			}
			else if (velocity.x < 0) 	
			{
				direction = 3;
				angle = Math.PI * 1.5;
			}
			*/
		}
	}
}